package com.dyoud.api;

import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;

import com.alibaba.dubbo.config.annotation.Reference;
import com.alibaba.dubbo.config.spring.context.annotation.DubboComponentScan;
import com.dyoud.file.api.service.FileUploadService;
import com.dyoud.user.api.service.UserService;

/**
 * 
 * @author Jonathan
 * @date 2018/03/01
 *
 */
@SpringBootApplication
@ImportResource(locations = "classpath:consumer.xml")
@DubboComponentScan(basePackages = { "com.dyoud.api" })
public class App implements CommandLineRunner {

    /*
     * @Reference private FileUploadService fileUploadService;
     */

    public static void main(String[] args) {
        SpringApplication.run(App.class, args);
    }

    @Override
    public void run(String... arg0) throws Exception {
        // fileUploadService.upload("a".getBytes(), "2222222");
    }

}
